how to redirect to another page from laravel blade

120

how to redirect to another page from laravel blade -

@if(Auth::user()->role_id == 1)
  {{ 'Page' }}
@else 
  <script>window.location = "/dashboard";</script>
@endif

Comments

Submit
0 Comments